﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetReviewList.aspx.cs" Inherits="CNVP.JShop.Web.Controls.GetReviewList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>评论列表</title>
<style type="text/css"> 
body{font-family:Verdana,'宋体';font-size:12px;margin:0px;padding:0px}
table,td{font-family:Verdana,'宋体';font-size:12px;}
a{text-decoration:none;color:#F00}
</style>
</head>
<body>
<form id="form1" runat="server">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td height="30" style="border-bottom:solid 1px #CCCCCC;padding-left:5px;">相关评论，共[<asp:Literal ID="LitRecord" runat="server"></asp:Literal>]条&nbsp;&nbsp;<a href="WriteReview.aspx?ProductID=<%=productId%>">[发表评论]</a></td>
    </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<asp:Repeater ID="rpList" runat="server">
<ItemTemplate>
    <tr>
        <td height="25" style="padding-left:5px;"><%#Eval("UserID")%>于(<%#Convert.ToDateTime(Eval("AddTime")).ToString("yyyy-MM-dd HH:mm:ss")%>)发表 <%#Eval("ReviewTitle")%>：</td>
    </tr>
    <tr>
        <td height="30" style="border-bottom:dotted 1px #CCCCCC;font-size:14px;padding-left:5px;">评分：<%#new CNVP.JShop.BLL.BLLRateStatus().GetRateStatus(Convert.ToByte(Eval("rateStatus")))%></td>
    </tr>
    <tr>
        <td height="30" style="border-bottom:dotted 1px #CCCCCC;font-size:14px;padding-left:5px;">内容：<br/><%#Eval("ReviewContent")%></td>
    </tr>
    <tr>
        <td><%# string.IsNullOrEmpty(Eval("LastReplyContent").ToString()) ? "" : "<font color=\"red\">回复人：" + Eval("LastReplyAuthor") + " 回复时间:" + Eval("LastReplyTime") + " <br/>回复内容：" + Eval("LastReplyContent") + "</font>"%></td>
    </tr>
</ItemTemplate>
</asp:Repeater>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
        <td style="height:5px"></td>
    </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
        <td style="text-align:left" class="cell_group"><asp:Literal ID="LitPager" runat="server"></asp:Literal></td>
    </tr>
</table>
</form>
</body>
</html>